package org.news.web.domain.vo;

import java.util.Date;

import org.news.web.domain.Favorites;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 收藏功能视图对象 favorites
 *
 * @author Gu Ci
 * @date 2024-04-03
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = Favorites.class)
public class FavoritesVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 收藏ID
     */
    @ExcelProperty(value = "收藏ID")
    private Long favoriteId;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;


    private String username;
    /**
     * 新闻ID
     */
    @ExcelProperty(value = "新闻ID")
    private Long newsId;


    private String title;

    /**
     * 记录收藏时间
     */
    @ExcelProperty(value = "记录收藏时间")
    private Date creationTime;


    private NewsVo newsVo;

    /**
     * 记录收藏更新时间
     */
    @ExcelProperty(value = "记录收藏更新时间")
    private Date updateTime;


}
